package com.syp.auth.service.validator;

public enum SigninVerifyStyle {
	
	/**
	 * 无
	 */
	NONE(0, "无"),
	/**
	 * 图片验证码
	 */
	IVC(1, "图片验证码"),
	/**
	 * 短信验证码
	SMSVC(2, "短信验证码")
	 */
	;

	/**
	 * 代码
	 */
	private int code;
	/**
	 * 描述
	 */
	private String desc;

	private SigninVerifyStyle(int code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public int getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
	public static final SigninVerifyStyle get(int code){
		for(SigninVerifyStyle svs : SigninVerifyStyle.values()){
			if(svs.getCode() == code){
				return svs;
			}
		}
		return null;
	}

}
